package com.koylu.faces.security;

import java.util.ArrayList;
import java.util.List;

public class Access {
	private String error;
	private List rules;
	public String getError() {
		return error;
	}
	public void setError(String error) {
		this.error = error;
	}
	public List getRules() {
		return rules;
	}
	public void setRules(List rules) {
		this.rules = rules;
	}	
	public void addRule(AccessRule rule){
		if(rules == null){
			rules = new ArrayList();
		}
		rules.add(rule);
	}
}
